
#ifndef __SMART_SECURITY_H__
#define __SMART_SECURITY_H__

#include <stdbool.h>

enum auto_command
{
    auto_state_on = 0x0001,
    auto_state_off,
};

enum light_command
{
    light_state_on = 0x1100,
    light_state_off= 0x1200,
};

enum beep_command
{
    beep_state_on = 0x0201,
    beep_state_off,
};

enum senror_command
{
    body_send = 0x0301,
    smoke_send,
};

void mq2_init(void);
void mq2_read_data(double *dat);

void beep_dev_init(void);
void beep_set_pwm(unsigned int duty);
void beep_set_state(bool state);

void alarm_light_init(void);
void alarm_light_set_gpio(bool state);

void body_induction_dev_init(void);
void body_induction_get_state(bool *dat);

void lcd_dev_init(void);
void lcd_load_ui(void);

void lcd_set_temperature(double temperature);
void lcd_set_humidity(double humidity);
void lcd_set_ppm(double ppm);
void lcd_set_illumination(double illumination);
void lcd_set_body_induction(bool body_induction);
void lcd_set_mortor_state(bool state);
void lcd_set_mg90_state(bool state);
void lcd_set_RGB_state(bool state);
void lcd_set_redled_state(bool state);
void lcd_set_SpeedX(short state);
void lcd_set_SpeedY(short state);
void lcd_set_SpeedZ(short state);

void lcd_set_beep_state(bool state);

#endif
